<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<div id="app">
			<img v-bind:src="src">
			<button type="button" v-on:click="fun1()">切换照片</button>
		</div>
		
		<script src="../js/vuejs-2.5.16.js" type="text/javascript" charset="utf-8"></script>
		
		<script type="text/javascript">
			const vue = new Vue({
				el: "#app",
				data:{
					src:"../images/earth.png"	
				},
				methods:{
					fun1:function(){
						this.src = "../images/user.png"
					}
				}
			})
		</script>
	</body>
</html>
